package chapter02;

public class Training06 {
    public static void main(String[] args) {
        pringTriangle(13);
    }
    public static void pringTriangle(int height) {
        for (int i = 1; i <= height; i++) {
            for (int j = 0; j <= (height - i) / 2; j++) {
                System.out.print(" ");
            }
            for (int j = 0; j < i; j++) {
                System.out.println("*");
            }

            System.out.print("\n");
        }
    }
}
